package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户扩展信息对象 sys_user_extension
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class SysUserExtension extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 扩展信息ID */
    private Long extensionId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private BigDecimal accountBalance;

    /** 冻结余额 */
    @Excel(name = "冻结余额")
    private BigDecimal frozenBalance;

    /** 累计充值金额 */
    @Excel(name = "累计充值金额")
    private BigDecimal totalRecharge;

    /** 累计消费金额 */
    @Excel(name = "累计消费金额")
    private BigDecimal totalConsume;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String paymentPassword;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setExtensionId(Long extensionId) 
    {
        this.extensionId = extensionId;
    }

    public Long getExtensionId() 
    {
        return extensionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setAccountBalance(BigDecimal accountBalance) 
    {
        this.accountBalance = accountBalance;
    }

    public BigDecimal getAccountBalance() 
    {
        return accountBalance;
    }

    public void setFrozenBalance(BigDecimal frozenBalance) 
    {
        this.frozenBalance = frozenBalance;
    }

    public BigDecimal getFrozenBalance() 
    {
        return frozenBalance;
    }

    public void setTotalRecharge(BigDecimal totalRecharge) 
    {
        this.totalRecharge = totalRecharge;
    }

    public BigDecimal getTotalRecharge() 
    {
        return totalRecharge;
    }

    public void setTotalConsume(BigDecimal totalConsume) 
    {
        this.totalConsume = totalConsume;
    }

    public BigDecimal getTotalConsume() 
    {
        return totalConsume;
    }

    public void setPaymentPassword(String paymentPassword) 
    {
        this.paymentPassword = paymentPassword;
    }

    public String getPaymentPassword() 
    {
        return paymentPassword;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("extensionId", getExtensionId())
            .append("userId", getUserId())
            .append("accountBalance", getAccountBalance())
            .append("frozenBalance", getFrozenBalance())
            .append("totalRecharge", getTotalRecharge())
            .append("totalConsume", getTotalConsume())
            .append("paymentPassword", getPaymentPassword())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
